package com.core.zyyz.amc.modules.mapper;

import java.util.List;
import com.core.zyyz.amc.modules.domain.AmcProjectSubnode;
import io.lettuce.core.dynamic.annotation.Param;

/**
 * 子节点配置Mapper接口
 *
 * @author LiuFushun
 * @date 2024-11-20
 */
public interface AmcProjectSubnodeMapper
{
    /**
     * 查询子节点配置
     *
     * @param subnodeId 子节点配置主键
     * @return 子节点配置
     */
    public AmcProjectSubnode selectAmcProjectSubnodeBySubnodeId(String subnodeId);

    /**
     * 查询子节点配置
     * @param nodeCode 子节点配置Code
     * @return
     */
    public List<AmcProjectSubnode> querySubNodeByNode(String nodeCode);


    /**
     * 查询子节点配置列表
     *
     * @param amcProjectSubnode 子节点配置
     * @return 子节点配置集合
     */
    public List<AmcProjectSubnode> selectAmcProjectSubnodeList(AmcProjectSubnode amcProjectSubnode);

    /**
     * 新增子节点配置
     *
     * @param amcProjectSubnode 子节点配置
     * @return 结果
     */
    public int insertAmcProjectSubnode(AmcProjectSubnode amcProjectSubnode);

    /**
     * 修改子节点配置
     *
     * @param amcProjectSubnode 子节点配置
     * @return 结果
     */
    public int updateAmcProjectSubnode(AmcProjectSubnode amcProjectSubnode);

    /**
     * 删除子节点配置
     *
     * @param subnodeId 子节点配置主键
     * @return 结果
     */
    public int deleteAmcProjectSubnodeBySubnodeId(String subnodeId);

    /**
     * 批量删除子节点配置
     *
     * @param subnodeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAmcProjectSubnodeBySubnodeIds(String[] subnodeIds);

    /**
     * 查询子节点代码在配置中已存在
     * @param amcProjectSubnode
     * @return
     */
    public int checkIsExist(AmcProjectSubnode amcProjectSubnode);

    public AmcProjectSubnode selectProjectSubnodeBySubNodeCode(String subnodeCode);
}
